package cn.iocoder.yudao.module.shop.controller.admin.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 店内订单核销 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Validated
public class ShopOrderCheckReqVO extends ShopOrderBaseVO{

    @Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "订单id不能为空")
    private Long id;

    @Schema(description = "是否打折", requiredMode = Schema.RequiredMode.REQUIRED, example = "false")
    @NotNull(message = "是否打折不能为空")
    private Boolean discount;

    @Schema(description = "折后价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private Integer finalPayPrice;

    @Schema(description = "是否余额支付", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean walletCharge;

    @Schema(description = "次数支付", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Boolean timesCharge;

    @Schema(description = "项目id", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Long itemId;

    @Schema(description = "支付次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
    private Integer times;
}
